﻿<UserControl x:Class="P2.Cuberry.Modules.SimpleAccounting.HRPayroll.HRPayrollsFindView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
    Margin="0" MinWidth="230" Width="Auto" MinHeight="230" Height="250">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>                               
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>

    <Grid Keyboard.KeyDown="Control_KeyDown">

        <Grid.Resources>
            <Image x:Key="FindIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.HRPayroll;component/Images/find16.gif" />
            <Image x:Key="ClearIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.HRPayroll;component/Images/clear.png" />
            <Image x:Key="AddIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleAccounting.HRPayroll;component/Images/add.png" />
        </Grid.Resources>


        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="4" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="2" />
        </Grid.RowDefinitions>


        <Menu Grid.Column="0" Grid.Row="0" x:Name="menuMain" Height="25" VerticalAlignment="Top" Background="{DynamicResource MyBlueBackgroundGradientBrush}" >
            <MenuItem Name="btnHRPayrollFind" Margin="2,4,0,2"  Header="{Translate HRPayrollFind}" x:Uid="btnHRPayrollFind" Command="{Binding HRPayrollFindCommand}" Icon="{StaticResource FindIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
            <MenuItem Name="btnHRPayrollClr" Margin="2,4,0,2" Header="{Translate HRPayrollClr}" x:Uid="btnHRPayrollClr" Command="{Binding HRPayrollClrCommand}" Icon="{StaticResource ClearIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
            <MenuItem Name="btnHRPayrollAdd" Margin="2,4,0,2"  Header="{Translate HRPayrollAdd}" x:Uid="btnHRPayrollAdd" Command="{Binding HRPayrollAddCommand}" Icon="{StaticResource AddIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
        </Menu>
        
        <Label Grid.Row="2"  Height="23" Margin="-2,30,0,0" Name="PaymentNoL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Content="{Translate PaymentNoL}" />
        <TextBox Grid.Row="2" Height="23" Margin="88,30,11,0" Name="PaymentNo" Text="{Binding PaymentNo}" VerticalAlignment="Top" Style="{StaticResource P2TextBoxStyle}"/>


        <Label Grid.Row="2" Height="23" Margin="-2,60,0,0" Name="FiscalYearIDL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate FiscalYearIDL}" />
        <ComboBox Grid.Row="2" Height="23" Margin="88,60,11,0" Name="FiscalYearID" ItemsSource="{Binding FiscalYears}" SelectedValue="{Binding FiscalYearID}" VerticalAlignment="Top" SelectedValuePath="FiscalYearID" DisplayMemberPath="FiscalYearName" Style="{StaticResource P2ComboBoxStyle}"  />

        <Label Grid.Row="2" Height="23" Margin="-1,85,0,0" Name="PaymentDescriptionL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL" Content="{Translate PaymentDescriptionL}" />
        <TextBox Grid.Row="2" Height="23" Margin="88,85,11,0" Name="PaymentDescription" VerticalAlignment="Top" Text="{Binding PaymentDescription}" Style="{StaticResource P2TextBoxStyle}" />


        <Label Grid.Row="2" Height="23" Margin="-2,115,0,0" Name="PaymentDateStartL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate PaymentDateStartL}" />
        <DatePicker Grid.Row="2" Height="23" Margin="88,115,11,31" Name="PaymentDateStart" SelectedDate="{Binding PaymentDateStart}" VerticalAlignment="Top" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />

        <Label Grid.Row="2" Height="23" Margin="-2,140,0,0" Name="PaymentDateEndL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate PaymentDateEndL}" />
        <DatePicker Grid.Row="2" Height="23" Margin="88,140,11,0" Name="PaymentDateEnd" SelectedDate="{Binding PaymentDateEnd}" VerticalAlignment="Top" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />

        <Label Grid.Row="2" Height="23" Margin="-2,170,0,0" Name="StatusIDL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Tag="SxL"  Content="{Translate StatusIDL}" />
        <ComboBox Grid.Row="2" Height="23" Margin="88,170,11,0" Name="StatusID" ItemsSource="{Binding WorkflowStatusses}" SelectedValue="{Binding StatusID}" VerticalAlignment="Top" SelectedValuePath="StatusID" DisplayMemberPath="StatusNameCur" Style="{StaticResource P2ComboBoxStyle}" />
    </Grid>
</UserControl>
